package day17.tarena.com.gui;
import javax.swing.*;
public class TestIcon {
    public TestIcon(){
    	JFrame jf = new JFrame("Test Flow");
		Icon ic = new ImageIcon("D:\\zlm\\1.jpg");
		JLabel jl = new JLabel(ic);
		JButton jb = new JButton(ic);
		jf.add(jl);
		//jf.add(jb);
		jf.setLocation(100,50);//���ó���λ��
		jf.pack();
		jf.setVisible(true);//���ÿɼ�
		jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
	public static void main(String[] args) {
		new TestIcon();
	}

}
